<%--
  ** Copyright(c) 2005 BroadVision, Inc. All rights reserved.
  **
  ** This software is copyrighted.  Under the copyright laws, this software
  ** may not be copied, in whole or in part, without prior written consent
  ** of BroadVision, Inc. or its assignees. This software is provided under
  ** the terms of a license between BroadVision and the recipient, and its
  ** use is subject to the terms of that license.
  **
  ** This software may be protected by one or more U.S. and International
  ** patents. Certain applications of BroadVision One-To-One software are
  ** covered by U.S. patent 5,710,887.
  **
  ** TRADEMARKS: BroadVision and the BroadVision logo are registered
  ** trademarks, and BroadVision One-To-One is a trademark of BroadVision,
  ** Inc. IONA and Orbix are trademarks of IONA Technologies, Ltd. RSA,
  ** MD5, and RC2 are trademarks of RSA Data Security, Inc. All other
  ** trademarks, service marks, and trade names belong to their respective
  ** owners. BroadVision, Inc. disclaims any proprietary interest in the
  ** marks and names of others.
  --%>

<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>

<%@ page import="java.io.ByteArrayOutputStream" %>

<%@ page import="org.w3c.dom.Document" %>
<%@ page import="org.w3c.dom.Element" %>

<%@ page import="com.broadvision.aop.XmlUtil" %>
<%@ page import="com.broadvision.report.admin.ReportConfig" %>

<%
  final ReportConfig model =
          (ReportConfig)request.getAttribute("runtimeReportConfigModel");

  final XmlUtil util = new XmlUtil();
  final Document doc = util.newDocument();
  final Element root = model.toXml(doc, null);
  doc.appendChild(root);

  final ByteArrayOutputStream os = new ByteArrayOutputStream(1024);
  XmlUtil.printDocument(doc, os);
%>
<c:set var="cfgdump"><%=os.toString("UTF-8")%></c:set>
<pre>
<c:out value="${cfgdump}" escapeXml="true"/>
</pre>

<!-- =============================================================
  ** vim: set ts=2 expandtab syntax=jsp:
  -->
